package com.lq.educationsystem.lqclasses.entiy;

import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName classes_student_tb
 */
@Data
public class ClassesStudentTb implements Serializable {
    /**
     * 班级课程学生表
     */
    private Integer classesStudentId;

    /**
     * 学生id
     */
    private Integer studentId;

    /**
     * 班级id
     */
    private Integer classesId;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ClassesStudentTb other = (ClassesStudentTb) that;
        return (this.getClassesStudentId() == null ? other.getClassesStudentId() == null : this.getClassesStudentId().equals(other.getClassesStudentId()))
            && (this.getStudentId() == null ? other.getStudentId() == null : this.getStudentId().equals(other.getStudentId()))
            && (this.getClassesId() == null ? other.getClassesId() == null : this.getClassesId().equals(other.getClassesId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getClassesStudentId() == null) ? 0 : getClassesStudentId().hashCode());
        result = prime * result + ((getStudentId() == null) ? 0 : getStudentId().hashCode());
        result = prime * result + ((getClassesId() == null) ? 0 : getClassesId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", classesStudentId=").append(classesStudentId);
        sb.append(", studentId=").append(studentId);
        sb.append(", classesId=").append(classesId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}